<?php
$session = new CHttpSession;
$session->open();
Yii::app()->setLanguage(isset($session['sess_lang']) ? $session['sess_lang'] : 'th');
/* @var $this HomeController */
$this->breadcrumbs = array(
    'Home',
);
?>

<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="#home">Home</a></li>
    <li><a href="#profile">Profile</a></li>
    <li><a href="#messages">Messages</a></li>
    <li><a href="#settings">Settings</a></li>
</ul>

<div class="tab-content">
    <div class="tab-pane active" id="home">...</div>
    <div class="tab-pane" id="profile">...</div>
    <div class="tab-pane" id="messages">...</div>
    <div class="tab-pane" id="settings">...</div>
</div>

<button id="loading" type="button" class="btn btn-primary" data-loading-text="Loading...">Loading state</button>

<script type="text/javascript" >
    $('#loading').button('loading')
    $('#myTab a').click(function(e) {
        e.preventDefault();
        $(this).tab('show');
    });
</script>
